<?php
/* @var $this UserController */
/* @var $model User */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'user-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'kode_user'); ?>
		<?php echo $form->textField($model,'kode_user',array('size'=>8,'maxlength'=>8)); ?>
		<?php echo $form->error($model,'kode_user'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'kode_jak'); ?>
		<?php echo $form->textField($model,'kode_jak',array('size'=>6,'maxlength'=>6)); ?>
		<?php echo $form->error($model,'kode_jak'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'nama_peg'); ?>
		<?php echo $form->textField($model,'nama_peg',array('size'=>25,'maxlength'=>25)); ?>
		<?php echo $form->error($model,'nama_peg'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'nama_user'); ?>
		<?php echo $form->textField($model,'nama_user',array('size'=>25,'maxlength'=>25)); ?>
		<?php echo $form->error($model,'nama_user'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'pass'); ?>
		<?php echo $form->passwordField($model,'pass',array('size'=>50,'maxlength'=>50)); ?>
		<?php echo $form->error($model,'pass'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->